const {src,dest} = require("gulp");
const less = require("gulp-less");
const cleancss = require("gulp-clean-css");
const rename = require("gulp-rename");

// 构建style文件
const style = () =>{
    return src("src/style/css/*.less",{base:"src"})
    .pipe(less())
    .pipe(cleancss())
    .pipe(rename({
        "extname":".min.css"
    }))
    .pipe(dest("dist"));
}

// 导出文件
module.exports = {
    style
}
